<?php

class Signup extends Controller{

	function __construct(){
		parent::__construct();
		Session::init();
		$logged = Session::get('loggerIn');
		if($logged == true){
			header('location: '.URL);
		}
	}

	function index() {
		$this->view->render('page/signup');
	}

	function check_email(){
		$this->model->xhrCheckEmail();
	}

	function xhrInsert(){
		$this->model->xhrInsert();
	}
}
?>